package cn.tedu.restaurant.service;

import cn.tedu.restaurant.entity.Order;
import cn.tedu.restaurant.service.exception.InsertException;
import cn.tedu.restaurant.vo.OrderVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.org.apache.xpath.internal.operations.Or;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author JachinLin
 * @since 2020-10-05
 */
public interface OrderService extends IService<Order> {
    void insertOrder(Integer uid,Integer id,String time, Integer orderSeat,Integer orderNum,String phone,String username,String text)throws InsertException;
    List<Order> getOrders(Integer uid);
    Integer getCount();

    List<OrderVo> getUserOrders(Integer uid);
}
